package com.example.quartzdemo.util.job;

import com.example.quartzdemo.service.TaskLogRepository;
import org.quartz.JobExecutionContext;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.scheduling.quartz.QuartzJobBean;


public class ConcurrentQuartzJob extends QuartzJobBean {
    @Autowired
    ApplicationContext ctx;
    @Autowired
    TaskLogRepository logRepo;
    @Override protected void executeInternal(JobExecutionContext context) {
        QuartzJobUtil.executeWithLogging(context, ctx, logRepo);
    }
}
